<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">


<f:view>

	<ui:composition template="/_template.xhtml">
		<ui:define name="submenu"></ui:define>
		
		<ui:define name="title">
			Tela de Login - Ctrl.Liberty
		</ui:define>
		
		<ui:define name="menu" />
		
		
		<ui:define name="content">
			<div id="right_content">
			<h2>Faça seu login</h2>
		
	<h:form>
		
		<h:panelGrid columns="2">
			<h:outputText value="#{lgn.user}" />
			<p:inputText value="#{login.usuario.login}" required="true" requiredMessage="#{lgn.login_required}" maxlength="14" />
			<h:outputText value="#{lgn.password}" />
			<p:password value="#{login.usuario.senha}" required="true" requiredMessage="#{lgn.password_required}" maxlength="8" minLength="3" feedback="false" />
			<p:commandButton value="Entrar" action="#{login.logar}" />

		</h:panelGrid>
		
	</h:form>
		
			</div>
			<div style=" clear:both;"></div>
				
		</ui:define>
	</ui:composition>
	
</f:view>

</html>